﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style x:Key="HyperlinkStyle" TargetType="{x:Type Hyperlink}">
        <Setter Property="Foreground" Value="{DynamicResource HyperlinkForeground}"/>
        <Setter  Property ="TextBlock.TextDecorations" Value ="{x:Null}" />
        <Style.Triggers >
            <Trigger Property ="IsMouseOver" Value ="True" >
                <Setter  Property ="Foreground" Value ="{DynamicResource HyperlinkMouseOverForeground}" />
                <Setter  Property ="TextBlock.TextDecorations" >
                    <Setter.Value >
                        <TextDecorationCollection >
                            <TextDecoration  Location ="Underline" />
                        </TextDecorationCollection>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="GreenButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Template" Value="{DynamicResource GreenButtonControlTemplate}" />
        <Setter Property="FontSize" Value="14" />
        <Setter Property="Width" Value="60"/>
        <Setter Property="Height" Value="35"/>
        <Setter Property="Foreground" Value="White" />
        <Setter Property="Margin" Value="5"/>
    </Style>

    <ControlTemplate x:Key="GreenButtonControlTemplate" TargetType="{x:Type Button}">
        <Grid SnapsToDevicePixels="True">
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="CommonStates">
                    <VisualState x:Name="MouseOver"/>
                    <VisualState x:Name="Pressed"/>
                    <VisualState x:Name="Disabled"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="FocusStates">
                    <VisualState x:Name="Focused"/>
                </VisualStateGroup>
                <VisualStateGroup x:Name="ValidationStates">
                    <VisualState x:Name="InvalidFocused"/>
                    <VisualState x:Name="InvalidUnfocused"/>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border x:Name="border" Background="{DynamicResource ButtonBackgroundBrush_Green}" BorderThickness="2" />
            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}"/>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsFocused" Value="True"/>
            <Trigger Property="IsDefaulted" Value="True"/>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource BorderBrush_Grey}" />
                <Setter Property="BorderThickness" TargetName="border" Value="4" />
                <Setter Property="Background"  TargetName="border" Value="{DynamicResource ButtonBackgroundBrush_Yellow}" />
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonBackgroundBrush_Yellow_Pressed}" />
                <Setter Property="BorderThickness" TargetName="border" Value="2" />
                <Setter Property="BorderBrush" TargetName="border" Value="{x:Null}" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonBackgroundBrush_Grey}" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style x:Key="TopTitleBarStyle" TargetType="{x:Type Grid}">
        <Setter Property="Width" Value="Auto"/>
        <Setter Property="Height" Value="Auto"/>
        <Setter Property="Background" Value="#FF6FA3FF"/>
        <Setter Property="Margin" Value="0"/>
    </Style>

    <Style x:Key="BoldTextBlockStyle" TargetType="{x:Type TextBlock}">
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Width" Value="Auto"/>
        <Setter Property="Height" Value="Auto"/>
        <Setter Property="FontSize" Value="14"/>
    </Style>

    <Style x:Key="TextBoxStyle" TargetType="{x:Type TextBox}">
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="Background" Value="{DynamicResource BackgroundBrush_LightYellow}"/>
        <Setter Property="BorderBrush" Value="{DynamicResource BorderBrush_Green}"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="0,5,20,5"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <Style x:Key="MainWindowStyle" TargetType="{x:Type Window}">
        <Setter Property="AllowsTransparency" Value="true"/>
        <Setter Property="Background" Value="{x:Null}"/>
        <Setter Property="ResizeMode" Value="CanResizeWithGrip"/>
        <Setter Property="WindowStyle" Value="None"/>
        <Setter Property="Template" Value="{DynamicResource MainWindowControlTemplate}" />
        <Setter Property="BorderThickness" Value="0"/>
    </Style>

    <ControlTemplate x:Key="MainWindowControlTemplate" TargetType="{x:Type Window}">
        <Grid Margin="5">
            <Rectangle RadiusX="0" RadiusY="0" Fill="{DynamicResource BackgroundBrush_Grey}">
                <Rectangle.Effect>
                    <DropShadowEffect BlurRadius="6" ShadowDepth="0" Color="#FFBE4600" Opacity="1" RenderingBias="Quality"/>
                </Rectangle.Effect>
            </Rectangle>
            <Border Background="{TemplateBinding Background}"    
				BorderBrush="{TemplateBinding BorderBrush}"    
				BorderThickness="{TemplateBinding BorderThickness}"    
				Padding="{TemplateBinding Margin}"    
				SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"    
				CornerRadius="0">
                <ContentPresenter />
            </Border>
        </Grid>
    </ControlTemplate>

</ResourceDictionary>